package cn.ctyun.ipush.web.user.service.impl;

import cn.ctyun.ipush.web.user.bo.City;
import cn.ctyun.ipush.web.user.dao.CityDao;
import cn.ctyun.ipush.web.user.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yanghongbo on 2016/7/10.
 */
@Service
public class CityServiceImpl implements CityService{

    @Autowired
    private CityDao cityDao;

    @Override
    public City findCityById(String cityId) {


        try{
            return cityDao.queryCityById(cityId);
        }catch (Exception e){
            return null;
        }
    }

    @Override
    public List<City> findCityAll(City city){
        try{
            return cityDao.queryCityAll(city);
        }catch (Exception e){
            return null;
        }
    }
}
